﻿@page
@model AdminUI.Pages.Finance.CashApplyConfirmModel
@{
    var F = Html.F();
}

@section body {
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:HiddenField ID="ID" Text="@Model.Current.ID"></f:HiddenField>
                    <f:TextBox ID="UserID" Readonly="true" Label="会员信息" Text="@Model.Current.UserID-@Model.Current.TrueName"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="50% 50%">
                <Items>
                    <f:NumberBox ID="Amount" Label="提现金额" EmptyText="" Text="@Model.Current.Amount" Readonly="true" MinValue="0" NoDecimal="false" DecimalPrecision="2" ShowTrigger="false"></f:NumberBox>
                    <f:DatePicker ID="PaymentTime" Label="转账日期" DateFormatString="yyyy-MM-dd" EnableEdit="false" Required="false" SelectedDate="@DateTime.Now"></f:DatePicker>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="Memo" Readonly="true" Label="会员账户" Text="@Model.Current.Memo"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="TradeNo" Required="false" Label="交易流水号" Text="@Model.Current.TradeNo" EmptyText="请输入交易流水号"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:RadioButtonList ID="OperatorID" Label="打款人" DataTextField="TrueName" DataValueField="UserID" DataSource="@ViewBag.UserList" SelectedValue="@Model.OnlineUserID">
                    </f:RadioButtonList>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="保存" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>
        /* 弹窗选择
            function onSelectMenu(event) {
                var menuType = F.ui.MenuType.getValue();
                var path = "/Dialog/SelectMenu?menuType="+menuType;
                //alert(path);
                F.ui.Window1.show(path, '选择上级菜单', 400, 500);
            }

            function onSelectIcon(event) {
                var path = "/Dialog/SelectIconFont";
                F.ui.Window1.show(path, '选择图标字体');
            }

            function updateIconFontValue(iconClass) {
                F.ui.Icon.setText(iconClass);
            }

            function updateTreeSelectValue(treeNode) {
                F.ui.ParentName.setText(treeNode.id + '-' + treeNode.text);
                F.ui.ParentID.setValue(treeNode.id);
            }
        */
    </script>
}
